const utils   = require('../util/utils');
const taskKey = require('./task_key');

const PREFIX       = 'api';
const CACHE_PREFIX = ':';

class Build_key {

    static buildKey(mKey,...keys){
        let keyString = `${PREFIX}${CACHE_PREFIX}`;
        if(utils.isNotEmpty(mKey)){
            keyString += `${mKey}`;
        }
        for (let key of keys){
            keyString += `${CACHE_PREFIX}${key}`
        }
        return keyString;
    }

}
module.exports = Build_key;
